// 微信公用方法
import {
	APPID
} from '../common/utils'
import http from '@/common/request.js'

// 使用code获取openid
export const exchangeCodeForOpenid = (code) => {
	return http(`/wx/redirect/${APPID}/greet`, {
		code
	}, true, {
		method: 'get'
	})
}